* nsterm.m (fd_handler:): FD_ZERO fds.
authorJan D. <jan.h.d@swipnet.se>
Sat, 8 Dec 2012 19:02:30 +0000 (20:02 +0100)
committerJan D. <jan.h.d@swipnet.se>
Sat, 8 Dec 2012 19:02:30 +0000 (20:02 +0100)
src/ChangeLog
src/nsterm.m

index 176767b473f3cf2bf639ccae8f3e8a15c5a0a152..a90e953ffdf7391ebf9977061baf5116376b4f2d 100644 (file)
@@ -1,9 +1,13 @@
+2012-12-08  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsterm.m (fd_handler:): FD_ZERO fds (Bug#13103).
+
 2012-12-08  Fabrice Popineau  <fabrice.popineau@gmail.com>
 
        * w32fns.c (cache_system_info): Cast sysinfo_cache.dwPageSize to
        DWORD_PTR, for compatibility with 64-bit builds.
 
-       * w32.c (_PROCESS_MEMORY_COUNTERS_EX): 
+       * w32.c (_PROCESS_MEMORY_COUNTERS_EX):
        (GetProcessWorkingSetSize_Proc, get_process_working_set_size)
        (system_process_attributes): Use SIZE_T rather than DWORD, for
        compatibility with 64-bit builds.
index 9d52bd7f52b46718b09dc5cd83f3dc0b4581a0e3..783765fe0b644a77af1c7d07b6bf1da5cbf0fe45 100644 (file)
@@ -4566,7 +4566,7 @@ not_in_argv (NSString *arg)
       if (waiting)
         {
           SELECT_TYPE fds;
-
+          FD_ZERO (&fds);
           FD_SET (selfds[0], &fds);
           result = select (selfds[0]+1, &fds, NULL, NULL, NULL);
           if (result > 0)